﻿@model SportMeetingPlanner.Models.Subscription
@{
    ViewBag.Title = "Subscribe to " + @Model.Meeting.Title;
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
@using (Html.BeginForm("Subscribe", "Meeting"))
{
    @Html.HiddenFor(model => model.Meeting.MeetingId)
    @Html.HiddenFor(model => model.Meeting.Title)
    @Html.HiddenFor(model => model.Meeting.Location)
    @Html.HiddenFor(model => model.SubscriptionId)
    @Html.HiddenFor(model => model.UserName)
    <br />
    <div class="section">
        <table class="listTable" cellspacing="0">
            <tr>
                <td class="leftColumn">
                    <div class="editor-label">
                        @Html.LabelFor(model => model.NrPersons)
                    </div>
                </td>
                <td class="rightColumn">
                    <div class="editor-field">
                        @Html.EditorFor(model => model.NrPersons)
                    </div>
                </td>
            </tr>
            <tr>
                <td class="leftColumn">
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Ball)
                    </div>
                </td>
                <td class="rightColumn">
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Ball)
                    </div>
                </td>
            </tr>
            <tr>
                <td class="leftColumn">
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Comment)
                    </div>
                </td>
                <td class="rightColumn">
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Comment)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <br />
                </td>
                <td>
                </td>
            </tr>
            <tr class="link">
                <td colspan="2" class="leftColumn">
                    <input type="submit" value="Save" />
                </td>
            </tr>
            <tr class="back">
                <td colspan="2">
                    @Html.ActionLink("Back to List", "Details", new { Id = Model.Meeting.MeetingId })
                </td>
            </tr>
        </table>
    </div>
}
